package com.project.mapper.core;

import com.project.mapper.common.BaseMapper;
import com.project.model.core.Role;

import java.util.List;

public interface RoleMapper extends BaseMapper<Role, Long> {

    /**
     * 根据id,roleCode验证编辑页面RoleCode的唯一性
     *
     * @param role
     * @return
     */
    List<Role> validateRoleCode(Role role);

    /**
     * 根据roleId查询menuIds
     *
     * @param roleId
     * @return
     */
    List<Long> selectMenuIds(Long roleId);

}